package com.shangye.miaoSha.controller;

import com.shangye.miaoSha.domain.MiaoshaUser;
import com.shangye.miaoSha.redis.RedisService;
import com.shangye.miaoSha.service.MiaoshaUserService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.CookieValue;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletResponse;

@Controller
@RequestMapping("/goods")
public class GoodController {


    @Autowired
    RedisService redisService;

    @GetMapping("/to_list")
    public String toList(Model model, MiaoshaUser miaoshaUser){
        model.addAttribute("user", miaoshaUser);
        return "goods_list";
    }




}
